package com.gxa.index.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxa.index.entity.AccommodationComments;
import com.gxa.index.mapper.AccommodationCommentsMapper;
import com.gxa.index.service.AccommodationCommentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AccommodationCommentsServiceImpl extends ServiceImpl<AccommodationCommentsMapper, AccommodationComments> implements AccommodationCommentsService {
@Autowired
    private AccommodationCommentsMapper accommodationCommentsMapper;


    @Override
    public List<AccommodationComments> shwoCommentonByid(Integer id, Integer currentPage, Integer pageSize) {
      Integer current=(currentPage-1)*pageSize;
        return accommodationCommentsMapper.shwoCommentonByid(id,current,pageSize);
    }
}
